package com.beiding.codecreater.core.render;

//可重复代码块
class RepeatBlock {

    //占位符
    private String holder;

    //代码模板,重复代码块中本身就是一个代码模板
    private Template template;

    //遍历的条目
    private String items;

    //每个条目的名称
    private String item;
    private String condition;
    RepeatBlock(String holder, Template template, String items, String item,String conditon) {
        this.holder = holder;
        this.template = template;
        this.items = items;
        this.item = item;
        this.condition = conditon;
    }

    String getHolder() {
        return holder;
    }

    Template getTemplate() {
        return template;
    }

    String getItems() {
        return items;
    }

    String getItem() {
        return item;
    }

    String getCondition() {
        return condition;
    }
}
